﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using MySql.Data.MySqlClient;

namespace automobili_data
{
    class MysqlAutomobiliDataFactory : AutomobiliDataFactory
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override IDbConnection createConnection()
        {
            return new MySqlConnection(ConnectionString);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override AutomobiliDataManagerImpl createDBAdapter()
        {
            return new MysqlAutomobiliDataManagerImpl();
        }

    }
}
